package com.github_Dididipapa.shortlink.project.dto.req;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description: To be defined
 * @author: dididi_papa
 * @email: mitis1624087624@gmail.com
 * @date: 2025/09/12  10:42
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
public class LinkReqDTO {

    /**
     * domain : string
     * originUrl : string
     * gid : string
     * createdType : 0
     * validDateType : 0
     * validDate : string
     * describe : string
     */

    private String domain;
    private String originUrl;
    private String gid;
    private Integer createdType;
    private Integer validDateType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date validDate;
    @TableField("`describe`")
    private String describe;
}
